Exporting to XML format

The Crystal Reports XML export option lets you create raw XML data from your Crystal reports. With this data, you can apply a style sheet or format for use in another application. For example, you might apply a format that renders your XML data as an HTML file for distribution over the web.

Note:    The XML export option does not render your Crystal report as an XML report. Rather, it creates raw XML data for you to manipulate as you need.

You can customize the structure of your XML data when exporting a report. For information on how to do this, see Customizing XML report definitions.

To export a report to XML
  1. Open the report you want to export.
  2. On the File menu, select Print, and then click Export.

    Tip:     Another way to do this is to click the Export button on the Standard toolbar.

    The Export dialog box appears.

  3. Select the export format type from the Format list. In this case, choose XML.
  4. Select Disk File from the Destination list.

    Note:    Since XML is an ODBC format, "Application" and "Disk file" provide the same result.

  5. Click OK.

    The Export To Directory dialog box appears.

  6. Enter the name of the directory you want to store the XML file(s) in.

    You can specify an existing directory on any drive by choosing from the boxes below the directory name.

  7. Enter a base file name for your XML file(s).

    Both the output XML file and its XSD or DTD—if you've specified an external schema or DTD on the Options tab of the XML Format dialog box—use this base file name.

    Note:    The Validation Type box indicates the validation choice you made on the options tab of the XML Format dialog box. You cannot change the validation type on the Export to Directory dialog box.

  8. Click OK when finished.

The report is exported to the directory you selected. The exported report can now be accessed as raw XML data.

Note:    Crystal Reports can also export reports to XML format from a browser using the URL command line. For information about how to do this, visit the Crystal Reports site at:

http://www.seagatesoftware.com/products/crystalreports

Note:    Content on the Crystal Reports web site is available only in English.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com